import React, { Component } from 'react';
import Logo from './Logo';
import Mouse from './Mouse';
// import MouseWithLogo from './MouseWithLogo';

export default class MouseTracker extends Component {
    
    render() {
        return (
          <>
            <h1>移动鼠标!</h1>
            {/* <MouseWithLogo /> */}
            <Mouse render={mouse => (
                <Logo mouse={mouse} />
            )} />
          </>
        );
    }
}
